package com.kunlong.util;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;

public class JsEngine {
    private static ScriptEngineManager scriptManager = new ScriptEngineManager();

    public static ScriptEngine getScriptEngine() {
        return scriptManager.getEngineByName("nashorn");//得到脚本引擎
    }

}
